<?php if (!defined('THINK_PATH')) exit();?>﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

	<head>

		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

        <!-- 移动端视口说明 -->
		<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">

		<title><?php echo C('WEB_TITLE');?></title>

		<link rel="stylesheet" href="/Public/css/common.css"/>

		<link rel="stylesheet" href="/Public/js/layui/css/layui.css"/>

        <link rel="stylesheet prefetch" href="/Public/js/photoswipe/photoswipe.css">

        <link rel="stylesheet prefetch" href="/Public/js/photoswipe/default-skin/default-skin.css">

        <link rel="stylesheet" href="/Public/mobile/css/mobile-terminal.css"/>

        <link rel="stylesheet" href="<?php echo C('MOBILE_ICON_HTTP');?>"/>

		<link rel="stylesheet" href="/Public/js/mobileSelect/mobileSelect.css">

		<link rel="stylesheet" href="/Public/js/mobile-date/mobile-date.css">

		<?php if($is_app == 1): ?><link rel="stylesheet" href="/Public/mobile/css/app.css"/><?php endif; ?>

		<link rel="stylesheet" href="/Public/js/jeDate/skin/jedate.css">

		<script type="text/javascript" >

			const moduleName = "<?php echo (MODULE_NAME); ?>";

		</script>

		<script type="text/javascript" src="/Public/js/jquery-1.9.1.min.js"></script>

		<script type="text/javascript" src="/Public/js/cookie/jquery.cookie.js"></script>

		<script type="text/javascript" src="/Public/js/lang/<?php echo (getStrToLower(cookie('think_language'))); ?>.js"></script>

		<script type="text/javascript" src="/Public/js/layer/layer.js"></script>

		<script type="text/javascript" src="/Public/js/layui/layui.js"></script>

		<!-- uni 的 SDK -->
		<script type="text/javascript" src="/Public/js/uni.webview.1.5.2.js"></script>

		<script type="text/javascript" src="/Public/js/WeChat/wechatglobal.js"></script>

		<script type="text/javascript" src="/Public/js/WeChat/wechatupload.js"></script>

		<script type="text/javascript" src="/Public/js/photoswipe/photoswipe.min.js"></script>

		<script type="text/javascript" src="/Public/js/photoswipe/photoswipe-ui-default.min.js"></script>

        <script type="text/javascript" src="/Public/js/WeChat/iscroll.js"></script>

		<script type="text/javascript" src="/Public/js/mobile-date/mobile-date.js"></script>

		<script type="text/javascript" src="/Public/js/jeDate/src/jedate.js"></script>

		<script type="text/javascript" src="/Public/js/feeldesk-slide.js"></script>

		<script type="text/javascript" src='/Public/js/socket.io.js'></script>

		<script type="text/javascript">

			var socketUrl = "<?php echo C('SOCKET_IO_URL');?>";

			document.addEventListener('UniAppJSBridgeReady', function()
			{
				uni.getEnv(function(res)
				{
					if (res.plus)//res.h5
					{
						isApp = true;

						if($('#login-trigger').length > 0)
						{
							document.querySelector('#login-trigger').addEventListener('click', function(e)
							{
								var target = e.target;

								uni.postMessage({
									data: {
										uid: $(target).data('value'),
										cid: $(target).data('c-value')
									}
								})
							});
						}
					}
				});
			});

		</script>

		<style type="text/css">

            body{background-color: #fafafa}

        </style>

	</head>

    <body>



<div class="feeldesk feeldesk-notify bgf" id="notifyCenter">

    <header>

        <div class="menu-header">

            <a href="javascript:" class="header-left" id="all-read" data-type="read"><?php echo L('ALL_READ');?></a>

            <div class="header-title"><?php echo L('NOTIFY');?></div>

            <a href="javascript:" class="header-right" id="all-delete" data-type="delete"><?php echo L('CLEAR_MSG');?></a>

        </div>

        <?php if($groupSystemAuth['ticket_auth'] && $groupSystemAuth['crm_auth']): ?><!-- 全部 -->
            <div class="message-tab message-tab-two">

                <div class="tab-item">

                    <a href="<?php echo C('HTTP_PROTOCOL');?>://<?php echo C('HOST_DOMAIN');?>/Mobile/Message/getMessage" class="tab-ticket <?php if((MODULE_NAME) == "Mobile"): ?>current<?php endif; ?>">

                        <i class="iconfont icon-ticket-tab">

                            <?php if(($unReadNumber["ticket"]) > "0"): ?><span><?php if(($unReadNumber["ticket"]) > "99"): ?>99<?php else: echo ($unReadNumber["ticket"]); endif; ?></span><?php endif; ?>

                        </i>

                        <p><?php echo L('TICKET');?></p>

                    </a>

                </div>

                <div class="tab-item">

                    <a href="<?php echo C('HTTP_PROTOCOL');?>://<?php echo C('HOST_DOMAIN');?>/CrmMobile/Message/getMessage?l=<?php echo ($lang); ?>" class="tab-crm  <?php if((MODULE_NAME) == "CrmMobile"): ?>current<?php endif; ?>">

                        <i class="iconfont icon-crm-tab">

                            <?php if(($unReadNumber["crm"]) > "0"): ?><span><?php if(($unReadNumber["crm"]) > "99"): ?>99<?php else: echo ($unReadNumber["crm"]); endif; ?></span><?php endif; ?>

                        </i>

                        <p><?php echo L('CRM');?></p>

                    </a>

                </div>

            </div>

        <?php elseif(!$groupSystemAuth['ticket_auth'] && $groupSystemAuth['crm_auth']): ?>

            <!-- CRM -->
            <div class="one-tab-item">

                <i class="iconfont icon-crm-tab">

                    <?php if(($unReadNumber["crm"]) > "0"): ?><span><?php if(($unReadNumber["crm"]) > "99"): ?>99<?php else: echo ($unReadNumber["crm"]); endif; ?></span><?php endif; ?>

                </i>

                <p><?php echo L('CRM');?></p>

            </div>

        <?php else: ?>

            <!-- 工单 -->
            <div class="one-tab-item">

                <i class="iconfont icon-ticket-tab">

                    <?php if(($unReadNumber["ticket"]) > "0"): ?><span><?php if(($unReadNumber["ticket"]) > "99"): ?>99<?php else: echo ($unReadNumber["ticket"]); endif; ?></span><?php endif; ?>

                </i>

                <p><?php echo L('TICKET');?></p>

            </div><?php endif; ?>

    </header>

    <div class="feeldesk-main message-main" id="messageItem"></div>

    <div class="message-operate">

        <a href="javascript:" class="message-delete"><?php echo L('DELETE');?></a>

        <a href="javascript:" class="delete-cancel"><?php echo L('CANCEL');?></a>

    </div>

    <div class="message-shade"></div>

</div>

<div class="feeldesk-footer">

    <ul class="footer-nav">

        <li>

            <a href="<?php echo C('HTTP_PROTOCOL');?>://<?php echo C('HOST_DOMAIN');?>/<?php echo ($system); ?>?l=<?php echo ($lang); ?>" class="<?php if((CONTROLLER_NAME) == "Index"): ?>active<?php endif; ?>">

                <i class="iconfont icon-home"></i>

                <p><?php echo L('HOMEPAGE');?></p>

            </a>

        </li>

        <li class="relative messageli">

            <a href="<?php echo C('HTTP_PROTOCOL');?>://<?php echo C('HOST_DOMAIN');?>/<?php echo ($system); ?>/Message/getMessage?l=<?php echo ($lang); ?>" class="<?php if((CONTROLLER_NAME) == "Message"): ?>active<?php endif; ?>">

                <i class="iconfont icon-notify"></i>

                <p><?php echo L('NOTIFY');?></p>

                <?php if(!empty($unReadMessageNum)): ?><span class="message-num"><?php if(($unReadMessageNum) > "99"): ?>99+<?php else: echo ($unReadMessageNum); endif; ?></span><?php endif; ?>

            </a>

        </li>

        <?php if(!empty($mobile["menuAuth"]["isCenterAuth"])): ?><li>

                <a href="<?php echo C('HTTP_PROTOCOL');?>://<?php echo C('HOST_DOMAIN');?>/Mobile/Setting/index?system=<?php echo ($system); ?>" class="<?php if((CONTROLLER_NAME) == "Setting"): ?>active<?php endif; ?>">

                    <i class="iconfont icon-my"></i>

                    <p><?php echo L('PERSONAL');?></p>

                </a>

            </li><?php endif; ?>

    </ul>

</div>

<script type="text/javascript">

    $(".transfer").on('click',function()
    {
        $(this).find('i').toggleClass('icon-tianjia2');

        $(".transfer-nav").slideToggle('fast');

        $("#ticketPannel").toggleClass('pb120');
    })

</script>